import ajax from '@/utils/ajax';
import request from '@/utils/request'
export default {
    // 上传设计图
    uploadDesignDrawings(data) {
        return ajax({
            url: '/projects/uploadDesignDrawings',
            method: 'post',
            data
        })
    },
    // 优惠审查被拒绝
    discountReviewRejected(data) {
        return ajax({
            url: '/projects/discountReviewRejected',
            method: 'post',
            data
        })
    },
    // 优惠审查被通过
    discountReviewPassed(data) {
        return ajax({
            url: '/projects/discountReviewPassed',
            method: 'post',
            data
        })
    },
    // 修改项目信息
    updProject(data) {
        return ajax({
            url: '/projects/updProject',
            method: 'post',
            data
        })
    },
    // 出具报价单
    issueQuotation(data) {
        return ajax({
            url: '/projects/issueQuotation',
            method: 'post',
            data
        })
    },
    // 分配工程经理
    assignEngineeringManager(data) {
        return ajax({
            url: '/projects/assignEngineeringManager',
            method: 'post',
            data
        })
    },
    // 分配造价员
    assignCostEstimator(data) {
        return ajax({
            url: '/projects/assignCostEstimator',
            method: 'post',
            data
        })
    },
    // 合同签约
    contractAward(data) {
        return ajax({
            url: '/projects/contractAward',
            method: 'post',
            data
        })
    },
    // 对客报价
    toCustomerQuotation(data) {
        return ajax({
            url: '/projects/toCustomerQuotation',
            method: 'post',
            data
        })
    },
    // 报价审核拒绝
    quotationReviewRejected(data) {
        return ajax({
            url: '/projects/quotationReviewRejected',
            method: 'post',
            data
        })
    },
    // 报价审核通过
    quotationReviewPassed(data) {
        return ajax({
            url: '/projects/quotationReviewPassed',
            method: 'post',
            data
        })
    },
    // 指派客户经理
    assignAccountManager(data) {
        return ajax({
            url: '/projects/assignAccountManager',
            method: 'post',
            data
        })
    },
    // 提交勘场信息
    submitSurveyInformation(data) {
        return ajax({
            url: '/projects/submitSurveyInformation',
            method: 'post',
            data
        })
    },
    // 添加项目
    addProject(data) {
        return ajax({
            url: '/projects/addProject',
            method: 'post',
            data
        })
    },
    // 申请报价
    applyQuotation(data) {
        return ajax({
            url: '/projects/applyQuotation',
            method: 'post',
            data
        })
    },
    // 确认勘场费用
    confirmSurveySiteExpenses(data) {
        return ajax({
            url: '/projects/confirmSurveySiteExpenses',
            method: 'post',
            data
        })
    },
    // 确认预付款
    confirmAdvancePayment(data) {
        return ajax({
            url: '/projects/confirmAdvancePayment',
            method: 'post',
            data
        })
    },
    // 项目勘场
    projectSurveySite(data) {
        return ajax({
            url: '/projects/projectSurveySite',
            method: 'post',
            data
        })
    },
    // 项目节点验收
    nodeAcceptance(data) {
        return ajax({
            url: '/projects/nodeAcceptance',
            method: 'post',
            data
        })
    },
    // 项目节点验收拒绝
    nodeAcceptanceRejected(data) {
        return ajax({
            url: '/projects/nodeAcceptanceRejected',
            method: 'post',
            data
        })
    },
    // 项目节点验收通过
    nodeAcceptancePassed(data) {
        return ajax({
            url: '/projects/nodeAcceptancePassed',
            method: 'post',
            data
        })
    },
    // 项目列表
    getProjectList(data) {
        return ajax({
            url: '/projects/getProjectList',
            method: 'get',
            data
        })
    },
    // 项目详情
    getProjectDetails(data) {
        return ajax({
            url: '/projects/getProjectDetails',
            method: 'get',
            data
        })
    },
    // 获取项目tab数据
    getProjectTabData(data) {
        return ajax({
            url: '/projects/getProjectTabData',
            method: 'get',
            data
        })
    },
    // 获取项目日志列表
    getProjectLog(data) {
        return ajax({
            url: '/projects/getProjectLog',
            method: 'get',
            data
        })
    },
    // 获取项目阶段历史数据
    getProjectLogNew(data) {
        return ajax({
            url: '/projectSecond/getProjectLog',
            method: 'get',
            data
        })
    },
    // 获取项目日志列表（新）
    getProjectLogList(data) {
        return ajax({
            url: '/projects/getProjectLogList',
            method: 'get',
            data
        })
    },
    // 提交勘场费用信息
    submitSurveyFees(data) {
        return ajax({
            url: '/projects/submitSurveyFees',
            method: 'post',
            data
        })
    },
    // 确认勘场费用信息
    confirmSurveySiteExpenses(data) {
        return ajax({
            url: '/projects/confirmSurveySiteExpenses',
            method: 'post',
            data
        })
    },
    // 财务驳回
    financialRejection(data) {
        return ajax({
            url: '/projects/financialRejection',
            method: 'post',
            data
        })
    },
    // 添加对客日志
    addCustomerLogs(data) {
        return ajax({
            url: '/projects/addCustomerLogs',
            method: 'post',
            data
        })
    },
    // 上传勘场资料
    uploadSurveyData(data) {
        return ajax({
            url: '/projects/uploadSurveyData',
            method: 'post',
            data
        })
    },
    // 工程经理拒绝接单
    refuseAssignment(data) {
        return ajax({
            url: '/projects/refuseAssignment',
            method: 'post',
            data
        })
    },
    // 客户经理提交项目预付款凭证
    submitAdvancePayment(data) {
        return ajax({
            url: '/projects/submitAdvancePayment',
            method: 'post',
            data
        })
    },
    // 开始施工确认
    onSiteStartup(data) {
        return ajax({
            url: '/projects/onSiteStartup',
            method: 'post',
            data
        })
    },
    // 项目取消
    projectCancellation(data) {
        return ajax({
            url: '/projects/projectCancellation',
            method: 'post',
            data
        })
    },
    // 提交进度款凭证
    submitProgressPayment(data) {
        return ajax({
            url: '/projects/submitProgressPayment',
            method: 'post',
            data
        })
    },
    // 财务确认进度款凭证
    confirmProgressPayment(data) {
        return ajax({
            url: '/projects/confirmProgressPayment',
            method: 'post',
            data
        })
    },
    // 确认增减项
    confirmIsChangeItem(data) {
        return ajax({
            url: '/projects/confirmIsChangeItem',
            method: 'post',
            data
        })
    },
    // 添加施工日志
    addConstructionLogs(data) {
        return ajax({
            url: '/projects/addConstructionLogs',
            method: 'post',
            data
        })
    },
    // 出具结算单
    issueSettlementStatement(data) {
        return ajax({
            url: '/projects/issueSettlementStatement',
            method: 'post',
            data
        })
    },
    // 审核结算单拒绝
    settlementStatementRejected(data) {
        return ajax({
            url: '/projects/settlementStatementRejected',
            method: 'post',
            data
        })
    },
    // 审核结算单通过
    settlementStatementPassed(data) {
        return ajax({
            url: '/projects/settlementStatementPassed',
            method: 'post',
            data
        })
    },
    // 项目回退
    projectRollback(data) {
        return ajax({
            url: '/projects/projectRollback',
            method: 'post',
            data
        })
    },
    // 提交尾款凭证
    finalPaymentCollection(data) {
        return ajax({
            url: '/projects/finalPaymentCollection',
            method: 'post',
            data
        })
    },
    // 确认尾款信息
    confirmFinalPayment(data) {
        return ajax({
            url: '/projects/confirmFinalPayment',
            method: 'post',
            data
        })
    },
    // 获取施工日志
    getConstructionLogs(data) {
        return ajax({
            url: '/projects/getConstructionLogs',
            method: 'get',
            data
        })
    },
    // 继承项目
    userInheritance(data) {
        return ajax({
            url: '/admin/userInheritance',
            method: 'post',
            data
        })
    },
    // 删除项目
    delProject(data) {
        return ajax({
            url: '/projects/delProject',
            method: 'post',
            data
        })
    },
    // 更新设计图
    updDesignDrawings(data) {
        return ajax({
            url: '/projects/updDesignDrawings',
            method: 'post',
            data
        })
    },
    // 工程监理项目质量评分
    projectQualityRating(data) {
        return ajax({
            url: '/projects/projectQualityRating',
            method: 'post',
            data
        })
    },
    // 重新报价（回退至报价）
    reQuote(data) {
        return ajax({
            url: '/projects/reQuote',
            method: 'post',
            data
        })
    },
    // 选择勘场方式（项目启动）
    chooseSurveySite(data) {
        return ajax({
            url: '/projects/chooseSurveySite',
            method: 'post',
            data
        })
    },
}